import { CommandDialog } from '@amcax/base';
import React from 'react';
import ExaminesTable from './examines-table';
import { Button } from 'antd';

interface Props {
  open: boolean;
  onClose: VoidFunction;
}

export const ExaminesModal: React.FC<Props> = ({ onClose }) => {
  return (
    <CommandDialog
      title='支架核验'
      key='ExaminesModal'
      placement='bottomRight'
      style={{ width: 690 }}
      onClose={onClose}
      actions={[
        <Button
          key='exit'
          onClick={onClose}
        >
          退出
        </Button>,
        <Button
          key='params-designer'
          className='mx-2'
        >
          参数化设计
        </Button>,
        <Button
          onClick={onClose}
          key='y'
          type='primary'
        >
          确定
        </Button>,
      ]}
    >
      <ExaminesTable />
    </CommandDialog>
  );
};
